import { Column, Entity, PrimaryColumn } from 'typeorm';

@Entity({ name: 'apply_category' })
export class ApplyCategoryEntity{
    @PrimaryColumn('varchar', { name: 'id', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
    id: string;

    // 申请类型名称，必填
    @Column({ name: 'name', type: 'varchar',   charset: 'utf8mb4', collation: 'utf8mb4_general_ci'})
    name: string;

    // 是否需要审批 需要1， 不需要0，必填
    @Column('int', { name: 'need_apply'})
    needApply: number;

    // 审批人accountId列表，按顺序审批，以英文逗号分隔：8823455,7645322
    @Column({ name: 'approve_account_ids', type: 'varchar',  charset: 'utf8mb4', collation: 'utf8mb4_general_ci', nullable: true})
    approveAccountIds: string;

    // 状态： 正常1，已删除2
    @Column('int', { name: 'status' })
    status: number;

}
